#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：prod_ctrl_service
@File    ：urls.py
@IDE     ：PyCharm
@Author  ：孔令伟
@Date    ：8/27/24 3:12 PM
"""
from prod_ctrl_service.handlers.http_handler.fluid_injection_handler import (
    FileElectrolyteHandler, InputRawHandler, InputReturnHandler, InputWipInstationHandler,
    OutputWipHandler, ReportEquipParamHandler, ReportProdParamHandler, OutputWipUsenHandler, WipNoCheckHandler,
    OutputWipNewsnHandler, WipCheckHandler, InputVehicleInstation, OuputVehicleWipHandler, InputVehicleCellHandler,
    OuputVehicleCellHandler, WipCheckOutHandler, OutputSinglerollHandler, OuputVehicleWholeHandler)
from prod_ctrl_service.handlers.http_handler.slitting_handler import OutLotWipHandler

url = [
    # 注液
    # 生产前-原料批次投料-投入当前生产所需要的原料条码(IF020)
    (r"/api/prod_ctrl_service/prod_in_check/input_raw", InputRawHandler, "投入当前生产所需要的原料条码"),
    # 生产过程-在制品进站-在制品进站（化成段托盘码）(IF021)
    (r"/api/prod_ctrl_service/prod_in_check/input_vehicle_cell", InputVehicleCellHandler, "在制品进站（化成段托盘码）"),
    # 生产过程-在制品进站-电芯信息校验(IF022)
    (r"/api/prod_ctrl_service/prod_in_check/input_wip_instation", InputWipInstationHandler, "电芯信息校验"),
    # 生产过程-在制品进站-在制品进站（托盘码）(IF023)
    (r"/api/prod_ctrl_service/prod_in_check/input_vehicle_instation", InputVehicleInstation, "在制品进站（托盘码）"),
    # 生产完成-原料登出-未使用完的原料进行登出操作(IF024)
    (r"/api/prod_ctrl_service/prod_in_check/input_return", InputReturnHandler, "未使用完的原料进行登出操作"),
    # 其它-补液-补液数据上传校验(IF025)
    (r"/api/prod_ctrl_service/prod_in_check/fill_electrolyte", FileElectrolyteHandler, "补液数据上传校验"),
    # 电芯状态校验(IF026)
    (r"/api/prod_ctrl_service/prod_in_check/wip_check", WipCheckHandler, "进站前组盘时调用-电芯状态校验"),
    # 电芯状态校验（出站后组盘调用）(IF027)
    (r"/api/prod_ctrl_service/prod_in_check/wip_check_out", WipCheckOutHandler, "电芯状态校验（出站后组盘调用）"),
    # 蓝胶码重码校验(IF032)
    (r"/api/prod_ctrl_service/prod_out_check/wip_no_check", WipNoCheckHandler, "蓝胶码重码校验"),
    # 生产过程-完工出站-完工出站（正负极分切）IF033
    (r"/api/prod_ctrl_service/prod_out_check/output_lot", OutLotWipHandler, "完工出站（分切）"),
    # 生产过程-完工出站-按电芯提交电芯状态(OK,NG)(IF034)
    (r"/api/prod_ctrl_service/prod_out_check/output_wip", OutputWipHandler, "按电芯提交电芯状态(OK,NG)"),
    # 生产过程-完工出站-在制品完工上报（正极\负极汇流盘焊接）(IF035)
    (r"/api/prod_ctrl_service/prod_out_check/output_wip_newsn", OutputWipNewsnHandler,
     "在制品完工上报（单件、如正、负极电芯码等）"),
    # 生产过程-完工出站-在制品完工上报（卷绕)(IF036)
    (r"/api/prod_ctrl_service/prod_out_check/output_wip_usesn", OutputWipUsenHandler, "在制品完工上报（单件、如蓝胶码等"),
    # 生产过程-完工出站-完工出站（托盘码，按托盘码上报结果参数）(IF037)
    (r"/api/prod_ctrl_service/prod_out_check/output_vehicle_wip", OuputVehicleWipHandler,
     "完工出站（托盘码，按托盘码上报结果参数）"),
    # 生产过程-完工出站-完工出站（托盘码，按电芯上报结果参数）(IF038)
    (r"/api/prod_ctrl_service/prod_out_check/output_vehicle_cell", OuputVehicleCellHandler,
     "完工出站（托盘码，按电芯上报结果参数）"),
    # 化成段完工出站，将出站数据和进站时间发送给MES，本接口适用整托电芯结果参数都一致的工序，如常温静置等(IF039)
    (r"/api/prod_ctrl_service/prod_out_check/output_vehicle_whole", OuputVehicleWholeHandler, ""),
    # 生产过程-设备过程参数上报-按要求定时上传设备过程参数(IF042)
    (r"/api/prod_ctrl_service/param_mgm/report_equip_param", ReportEquipParamHandler, "按要求定时上传设备过程参数"),
    # 生产过程-产品过程参数上报-按电芯码上传产品过程参数(IF043)
    (r"/api/prod_ctrl_service/param_mgm/report_prod_param", ReportProdParamHandler, "按电芯码上传产品过程参数"),
    # 卷绕工序单卷时，将单卷数据发送给MES进行原材料扣料。正极单卷和负极单卷需要分别调用  (IF060)
    (r"/api/prod_ctrl_service/prod_out_check/output_singleroll", OutputSinglerollHandler, ""),
]
